local LoginMgr = class("LoginMgr");
function LoginMgr:ctor()
    
end

function LoginMgr:sdkLogin(paytype)
    if paytype == 1 then
        self:webChatLogin()
    end
end

function LoginMgr:webChatLogin()
    local function loginCallBack(dataString)
        if type(dataString) == "string" then
            mgrs.log:printDebug("loginCallBack %s",dataString)
        end
    end
    local args = {"WxLogin",loginCallBack}
    local sig = "(Ljava/lang/String;I)Z"
    local SdkLoginClass = "org/cocos2dx/lua/AppActivity"
    local ok, ret = luaj.callStaticMethod(SdkLoginClass, "sdkLogin", args,sig) --没有返回默认nil
    if ok then
        return ret
    else
        mgrs.log:printDebug("android Call aliPay error code =%d",ret)
    end
end


mgrs.login = nil;
mgrs.singleClass(mgrs,LoginMgr,"login");